<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=0,user-scalable=0">
    [#include "/wap/include/static.html"]
    <link rel="stylesheet" href="${path}/resources/wap/css/me/recharge.css"/>
</head>
<body>
<!--头部-->
<div id="header"   onclick="window.location.href='${path}/wap/member'" >
    <div class="left">
        <img id="goBack" src="${path}/resources/wap/img/me/blank.png">
    </div>
    <div class="center">
        提现
    </div>
</div>
<form class="layui-form">
<!--内容-->
<div class="content">
    <div class="bank-card">
        <div class="car-top">
            <div class="top-left">
                <img src="${path}/resources/wap/img/me/ZSlogo.png" alt=""/>
            </div>
            <div class="top-right">${bankCard.bank}</div>
        </div>

        <div class="car-next">
            <div class="number">${bankCard.bank_cardno?substring(0,3)+"*****"+bankCard.bank_cardno?substring(12)}</div>

        </div>
    </div>
    <div class="card">
        <div class="card-font">账户余额(元）</div>
        <div class="card-number">${account.balance}</div>
    </div>

</div>
<!--提现金额-->
<div class="money">
    <div class="deposit">
        <div class="deposit-left">提现金额(元)</div>
        <div class="deposit-right">
            <input placeholder="不可低于100元"   type="text" id="money" name="money">
        </div>
    </div>

</div>


<div class="hint">
    <p class="formalities">手续费：0.00元</p>
    <!--按钮-->
    <div class="type-one">
        <button lay-submit lay-filter="MainForm" >确认提现</button>
    </div>
    <div class="help-a">
        <p>确认提现后，将在<span>1个工作日(国家节假日除外)之内</span></p>
        <p>将钱转入绑定的银行卡账户内</p>
    </div>
    <div class="help-b">
        帮助 <img src="${path}/resources/wap/img/me/help.png" alt="">
    </div>

</div>
</form>
<!--底部-->
[#include "/wap/include/footer.ftl"]

</body>
<script>
    layui.use(['form','layer'], function(){
        var form = layui.form(), $=layui.jquery, layer = layui.layer;
        form.on('submit(MainForm)', function(data){
            layer.confirm("您确认提交提现申请吗？",function(){
                var index = layer.load();
                ajax({
                    url:"${path}/wap/member/account/docash",
                    data: data.field,
                    success: function(result){
                        if (result.type == "success") {
                            layer.msg("提现申请成功",function(){
                                window.location.href="${path}/wap/member/account/log";
                            });
                        } else {
                            layer.msg(result.content,{icon:2});
                        }
                        layer.close(index);
                    },
                    complete:function(){
                        layer.close(index);
                    },error:function(){
                        layer.closeAll();
                    }
                });
            });
            return false;
        });
    });
</script>
<script src="${path}/resources/wap/js/invest/OperatingLoan.js"></script>
</html>